/**
 * qujiakang
 * WorkflowInsView.java 创建于 2007-7-4
 */
package org.jackysoft.entity;

import com.google.gson.annotations.Expose;

/**
 * @author qujiakang
 * 
 */
public class WorkflowEntityItem implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5785026780650639483L;

	@Expose
	private Long workflowId;

	private String workflowTitle;
	@Expose
	private String workflowName;

	@Expose
	private String owner;
	@Expose
	private String startDate;
	@Expose
	private Integer state;
	@Expose
	private String starter;

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getStateDesc() {
		switch (this.getState()) {
		case WorkflowEntry.ACTIVATED:
			return "激活";
		case WorkflowEntry.COMPLETED:
			return "完成";
		case WorkflowEntry.CREATED:
			return "新建";
		case WorkflowEntry.KILLED:
			return "中断";
		case WorkflowEntry.SUSPENDED:
			return "挂起";
		case WorkflowEntry.UNKNOWN:
			return "未知";
		default:
			return "非法";
		}
	}

	public Long getWorkflowId() {
		return workflowId;
	}

	public void setWorkflowId(Long workflowId) {
		this.workflowId = workflowId;
	}

	public String getWorkflowTitle() {
		return workflowTitle;
	}

	public void setWorkflowTitle(String workflowTitle) {
		this.workflowTitle = workflowTitle;
	}

	public String getWorkflowName() {
		return workflowName;
	}

	public void setWorkflowName(String workflowName) {
		this.workflowName = workflowName;
	}

	public String getOwner() {
		return owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getStarter() {
		return starter;
	}

	public void setStarter(String starter) {
		this.starter = starter;
	}

}
